package com.entity;

public class TestOOP {

    public static void main(String[] args) {


        Person person = new Person();

        //向上转型
        Animal animal = new Person();
//        int x = 100;
        //Long l = x;

        //向下转型
        Person person1 = (Person) animal;
        //int y = (int)l;

    }
}
